// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import VueResource from 'vue-resource'
import 'font-awesome/css/font-awesome.css' // 字体文件
import 'mint-ui/lib/style.css'
import '@/common/css/reset.css' // 基础样式
import '@/common/stylus/index.styl' // 基础样式
import 'vue-ydui/dist/ydui.px.css'
// import 'vue-ydui/dist/ydui.rem.css'
import MintUI from 'mint-ui'
import YDUI from 'vue-ydui' /* 相当于import YDUI from 'vue-ydui/ydui.rem.js' */
// vux 全局应用
import axios from 'axios' // 引入axios
import qs from 'qs'
import getUrl from '../static/js/getUrl'
import confusion from '../static/js/confusion'
import { ConfirmPlugin } from 'vux'
// import FastClick from 'fastclick'
Vue.prototype.getUrl = getUrl
Vue.prototype.confusion = confusion
// Vue.prototype.Global = Global
Vue.prototype.$axios = axios
Vue.use(qs)
// Vue.use(VueResource) // 使用数据接收
Vue.use(MintUI)
Vue.use(YDUI)
Vue.config.productionTip = false
Vue.use(ConfirmPlugin)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  data: {
    eventHub: new Vue()
  },
  created () {
  }
})
